package com.gtenacg.cartoonservice.mapper;

import com.gtenacg.cartoonservice.pojo.model.Author;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DuplicateKeyException;

import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;

/**
* @author 86198
* @description 针对表【author(作者表)】的数据库操作Mapper
* @createDate 2024-05-13 16:04:37
* @Entity generator.pojo.Author
*/
@Mapper
public interface AuthorMapper {

    List<Author> list();

    void insert(Author author) throws DuplicateKeyException;

    void update(Author author);

    void delete(List<Integer> ids);

    List<Author> search(@Param("name") String name,
                        @Param("gender") String gender);
}




